package chamster;

import chamster.maeander.ForewardShiftRight;
import chamster.statemachine.MaeanderDEA;
import chamster.utils.FixedSizeStack;

public class MaeanderHamster extends StateMachineHamster<MaeanderHamster> {

	private FixedSizeStack<Boolean> visitHistory;
	
	public MaeanderHamster(double chance, int span) {
		super(new MaeanderDEA(chance, span), new ForewardShiftRight(), 10);
		this.visitHistory = new FixedSizeStack<Boolean>(10);
	}
	
	@Override
	public void foreward() throws Exception {
		super.foreward();
		this.visitHistory.addFirst(super.visitedBefore());
	}
	
	public FixedSizeStack<Boolean> getVisitHistory() {
		return this.visitHistory;
	}

}
